{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 20,
   "outputs": [],
   "source": [
    "import yaml\n",
    "\n",
    "\n",
    "params = {\n",
    "    \"eta\":    14\n",
    "    ,\"alpha\": 7\n",
    "    ,\"beta\":  22\n",
    "    ,\"gamma\": 1\n",
    "    ,\"delta\": 1\n",
    "    ,\"epsilon\": 1\n",
    "}\n",
    "\n",
    "\n",
    "with open('parameters.yaml', 'w') as outfile:\n",
    "    yaml.dump(params, outfile, default_flow_style=False, sort_keys=False)\n"
   ],
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%%\n",
     "is_executing": false
    }
   }
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": true,
    "pycharm": {
     "is_executing": false,
     "name": "#%%\n"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "text": [
      "{0: 0, 1: 4, 2: 6, 3: 1, 4: 3, 5: 6}\n",
      "{0: 0, 1: 4, 2: 6, 3: 1, 4: 3, 5: 6}\n",
      "BEFORE\n",
      "RESPONSE: \n",
      "     0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 ... 41 energy num_oc. ...\n",
      "69   1  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  1 -148.0       1 ...\n",
      "73   1  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0 -137.0       1 ...\n",
      "0    0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0 ...  0 -131.0       1 ...\n",
      "5    0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  1 -130.0       1 ...\n",
      "98   1  0  0  0  0  0  0  0  0  0  1  0  0  0  0  1 ...  0 -130.0       1 ...\n",
      "1    1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0 -128.0       1 ...\n",
      "8    0  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  1 -128.0       1 ...\n",
      "2    1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0 -127.0       1 ...\n",
      "9    1  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0 ...  0 -127.0       1 ...\n",
      "15   0  1  0  0  0  0  0  0  0  0  0  0  0  0  1  0 ...  1 -124.0       1 ...\n",
      "324  0  1  0  0  0  0  0  1  0  0  0  0  0  0  0  0 ...  0 -124.0       1 ...\n",
      "16   1  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0 -123.0       1 ...\n",
      "63   0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  1 -123.0       1 ...\n",
      "19   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  1 -121.0       1 ...\n",
      "21   1  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0 ...  0 -120.0       1 ...\n",
      "167  0  1  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0 -120.0       1 ...\n",
      "3    0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0 -119.0       1 ...\n",
      "4    0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0 ...  0 -117.0       1 ...\n",
      "80   0  0  1  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0 -117.0       1 ...\n",
      "82   0  1  0  0  0  0  0  0  0  0  0  0  0  0  1  0 ...  0 -116.0       1 ...\n",
      "83   1  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0 ...  0 -116.0       1 ...\n",
      "232  0  1  0  0  0  0  0  0  0  0  0  0  0  0  1  0 ...  0 -116.0       1 ...\n",
      "25   0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  1 -114.0       1 ...\n",
      "6    1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0 -112.0       1 ...\n",
      "7    0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0 -112.0       1 ...\n",
      "28   1  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0 -112.0       1 ...\n",
      "29   1  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0 -112.0       1 ...\n",
      "304  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0 -112.0       1 ...\n",
      "30   1  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  1 -111.0       1 ...\n",
      "32   0  0  0  1  0  0  0  0  0  0  0  0  0  1  0  0 ...  0 -110.0       1 ...\n",
      "166  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0 ...  0 -110.0       1 ...\n",
      "10   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0 -109.0       1 ...\n",
      "11   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0 -109.0       1 ...\n",
      "12   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1 -109.0       1 ...\n",
      "33   0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0 -109.0       1 ...\n",
      "74   0  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  0 -109.0       1 ...\n",
      "93   0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0 -109.0       1 ...\n",
      "265  0  0  0  0  0  0  0  0  0  1  0  0  0  0  1  0 ...  0 -109.0       1 ...\n",
      "13   0  0  0  1  0  0  0  0  0  0  0  0  0  0  0  1 ...  0 -108.0       1 ...\n",
      "14   1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1 -108.0       1 ...\n",
      "35   0  0  1  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0 -107.0       1 ...\n",
      "36   1  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  1 -107.0       1 ...\n",
      "37   0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0 -107.0       1 ...\n",
      "17   0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  1 ...  0 -106.0       1 ...\n",
      "39   0  0  1  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0 -106.0       1 ...\n",
      "40   0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0 -106.0       1 ...\n",
      "326  0  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  1 -106.0       1 ...\n",
      "18   1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0 -105.0       1 ...\n",
      "41   0  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0 ...  0 -105.0       1 ...\n",
      "42   1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0 -105.0       1 ...\n",
      "43   0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  1 -105.0       1 ...\n",
      "44   1  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0 -105.0       1 ...\n",
      "146  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0 -105.0       1 ...\n",
      "190  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0 ...  0 -105.0       1 ...\n",
      "20   1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1 -104.0       1 ...\n",
      "46   0  0  1  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0 -104.0       1 ...\n",
      "22   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0 -103.0       1 ...\n",
      "115  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  1 -103.0       1 ...\n",
      "123  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0 -103.0       1 ...\n",
      "49   0  1  0  0  0  0  0  0  0  0  0  0  1  0  0  0 ...  0 -102.0       1 ...\n",
      "50   1  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  0 -102.0       1 ...\n",
      "99   1  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  0 -102.0       1 ...\n",
      "121  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1 -102.0       1 ...\n",
      "440  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0 -102.0       1 ...\n",
      "142  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0 -101.0       1 ...\n",
      "54   0  1  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0 -100.0       1 ...\n",
      "55   1  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  1 -100.0       1 ...\n",
      "109  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0 -100.0       1 ...\n",
      "23   1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -99.0       1 ...\n",
      "139  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -99.0       1 ...\n",
      "24   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -98.0       1 ...\n",
      "58   0  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0 ...  1  -98.0       1 ...\n",
      "60   1  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -97.0       1 ...\n",
      "26   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -96.0       1 ...\n",
      "27   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -96.0       1 ...\n",
      "64   0  0  0  0  1  0  0  0  0  0  1  0  0  0  0  0 ...  0  -96.0       1 ...\n",
      "65   0  0  1  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -96.0       1 ...\n",
      "164  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -96.0       1 ...\n",
      "275  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  1  -96.0       1 ...\n",
      "31   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -94.0       1 ...\n",
      "70   0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -94.0       1 ...\n",
      "71   0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  1 ...  0  -94.0       1 ...\n",
      "72   0  0  1  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -94.0       1 ...\n",
      "327  0  0  1  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -94.0       1 ...\n",
      "75   0  0  1  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -93.0       1 ...\n",
      "76   0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  1 ...  1  -93.0       1 ...\n",
      "77   0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -93.0       1 ...\n",
      "78   1  0  0  0  0  0  0  0  0  0  0  1  0  0  1  0 ...  1  -93.0       1 ...\n",
      "34   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -92.0       1 ...\n",
      "81   0  0  1  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -92.0       1 ...\n",
      "165  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -92.0       1 ...\n",
      "260  0  0  1  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -92.0       1 ...\n",
      "467  0  0  0  0  0  0  0  0  0  0  0  0  0  1  1  0 ...  1  -92.0       1 ...\n",
      "108  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -91.0       1 ...\n",
      "236  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -91.0       1 ...\n",
      "38   1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -90.0       1 ...\n",
      "373  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  1  -90.0       1 ...\n",
      "452  0  1  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0  -90.0       1 ...\n",
      "87   0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -89.0       1 ...\n",
      "88   0  0  1  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  1  -89.0       1 ...\n",
      "182  0  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  0  -89.0       1 ...\n",
      "211  0  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0 ...  0  -89.0       1 ...\n",
      "413  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -89.0       1 ...\n",
      "421  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  1  -89.0       1 ...\n",
      "45   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -88.0       1 ...\n",
      "243  1  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  1  -88.0       1 ...\n",
      "47   1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -87.0       1 ...\n",
      "48   1  0  0  0  0  0  1  0  0  0  0  0  0  0  0  1 ...  0  -87.0       1 ...\n",
      "94   1  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  1  -87.0       1 ...\n",
      "95   0  1  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -87.0       1 ...\n",
      "96   1  0  0  0  0  0  0  0  0  0  1  0  0  0  0  1 ...  0  -87.0       1 ...\n",
      "300  0  1  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -87.0       1 ...\n",
      "100  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -86.0       1 ...\n",
      "101  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -86.0       1 ...\n",
      "116  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0 ...  0  -86.0       1 ...\n",
      "476  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -86.0       1 ...\n",
      "51   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -85.0       1 ...\n",
      "52   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -85.0       1 ...\n",
      "104  0  0  1  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -85.0       1 ...\n",
      "105  0  0  0  0  0  0  0  0  1  0  0  0  0  0  1  0 ...  0  -85.0       1 ...\n",
      "106  0  0  0  0  0  0  1  0  0  0  0  0  0  0  1  0 ...  0  -85.0       1 ...\n",
      "295  1  0  0  0  0  0  0  0  0  0  1  0  0  1  0  0 ...  0  -85.0       1 ...\n",
      "325  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -85.0       1 ...\n",
      "53   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -84.0       1 ...\n",
      "230  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -84.0       1 ...\n",
      "238  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -84.0       1 ...\n",
      "110  0  0  1  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -83.0       1 ...\n",
      "133  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -83.0       1 ...\n",
      "145  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -83.0       1 ...\n",
      "464  0  0  1  0  0  0  0  0  1  0  0  0  0  0  0  0 ...  0  -83.0       1 ...\n",
      "56   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -82.0       1 ...\n",
      "57   1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -82.0       1 ...\n",
      "173  0  1  0  0  0  0  0  1  0  0  0  0  0  0  0  0 ...  0  -82.0       1 ...\n",
      "204  1  0  0  0  0  0  0  0  0  1  0  0  0  0  1  0 ...  0  -82.0       1 ...\n",
      "254  1  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  0  -82.0       1 ...\n",
      "414  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -82.0       1 ...\n",
      "59   1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -81.0       1 ...\n",
      "216  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -81.0       1 ...\n",
      "61   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -80.0       1 ...\n",
      "62   1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -80.0       1 ...\n",
      "111  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0 ...  0  -80.0       1 ...\n",
      "112  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  1 ...  0  -80.0       1 ...\n",
      "156  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -80.0       1 ...\n",
      "221  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  1 ...  0  -80.0       1 ...\n",
      "488  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -80.0       1 ...\n",
      "66   0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -79.0       1 ...\n",
      "67   0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -79.0       1 ...\n",
      "68   1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -79.0       1 ...\n",
      "172  1  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -79.0       1 ...\n",
      "473  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -79.0       1 ...\n",
      "117  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -78.0       1 ...\n",
      "118  0  1  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0  -78.0       1 ...\n",
      "119  0  0  1  0  0  0  0  0  0  1  0  0  0  0  1  0 ...  1  -78.0       1 ...\n",
      "120  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -78.0       1 ...\n",
      "149  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -78.0       1 ...\n",
      "155  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0 ...  0  -78.0       1 ...\n",
      "383  0  0  1  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0  -78.0       1 ...\n",
      "124  0  0  0  0  0  0  0  1  0  0  0  0  0  0  1  0 ...  0  -77.0       1 ...\n",
      "125  0  1  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  1  -77.0       1 ...\n",
      "126  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -77.0       1 ...\n",
      "227  0  0  0  0  0  0  1  0  0  1  0  0  0  0  0  0 ...  0  -77.0       1 ...\n",
      "228  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0 ...  0  -77.0       1 ...\n",
      "281  0  1  0  0  0  0  0  0  1  0  0  0  0  0  0  0 ...  1  -77.0       1 ...\n",
      "305  0  0  1  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  1  -77.0       1 ...\n",
      "323  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -77.0       1 ...\n",
      "369  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -77.0       1 ...\n",
      "79   0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -76.0       1 ...\n",
      "129  0  1  0  0  0  0  0  0  1  0  0  0  0  0  0  0 ...  0  -76.0       1 ...\n",
      "130  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -76.0       1 ...\n",
      "131  0  1  0  0  0  0  0  0  0  0  0  0  1  0  0  0 ...  0  -76.0       1 ...\n",
      "174  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -76.0       1 ...\n",
      "224  1  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -76.0       1 ...\n",
      "134  1  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0  -75.0       2 ...\n",
      "135  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -75.0       1 ...\n",
      "136  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -75.0       1 ...\n",
      "485  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0 ...  0  -75.0       1 ...\n",
      "84   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -74.0       1 ...\n",
      "85   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -74.0       1 ...\n",
      "86   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -74.0       1 ...\n",
      "140  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0  -74.0       1 ...\n",
      "141  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -74.0       1 ...\n",
      "417  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0  -74.0       1 ...\n",
      "143  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0  -73.0       1 ...\n",
      "144  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  1  -73.0       1 ...\n",
      "231  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0 ...  0  -73.0       1 ...\n",
      "379  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  1  -73.0       1 ...\n",
      "401  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -73.0       1 ...\n",
      "89   1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -72.0       1 ...\n",
      "147  0  0  1  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -72.0       1 ...\n",
      "148  0  0  0  0  0  0  0  0  0  1  1  0  0  0  0  0 ...  0  -72.0       1 ...\n",
      "261  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -72.0       1 ...\n",
      "290  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -72.0       1 ...\n",
      "478  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -72.0       1 ...\n",
      "90   0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -71.0       1 ...\n",
      "91   0  1  0  1  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -71.0       1 ...\n",
      "92   1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -71.0       1 ...\n",
      "152  1  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0  -71.0       1 ...\n",
      "153  0  0  0  0  0  0  0  0  0  0  1  0  0  0  1  0 ...  0  -71.0       1 ...\n",
      "333  0  1  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0  -71.0       1 ...\n",
      "418  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -71.0       1 ...\n",
      "427  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -71.0       1 ...\n",
      "474  0  0  1  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  1  -71.0       1 ...\n",
      "97   0  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -70.0       1 ...\n",
      "157  1  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -70.0       1 ...\n",
      "158  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0 ...  0  -70.0       1 ...\n",
      "197  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -70.0       1 ...\n",
      "477  0  0  0  0  1  0  0  0  0  0  0  0  0  1  0  0 ...  1  -70.0       1 ...\n",
      "495  1  0  0  0  0  0  0  0  0  0  1  0  1  0  0  0 ...  0  -70.0       1 ...\n",
      "102  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -69.0       1 ...\n",
      "103  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -69.0       1 ...\n",
      "159  0  1  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -69.0       1 ...\n",
      "160  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0 ...  0  -69.0       1 ...\n",
      "161  0  0  0  0  0  0  0  0  1  0  1  0  0  0  0  0 ...  0  -69.0       1 ...\n",
      "162  0  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  0  -69.0       1 ...\n",
      "163  0  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  1  -69.0       1 ...\n",
      "424  1  0  1  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -69.0       1 ...\n",
      "107  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0 ...  0  -68.0       1 ...\n",
      "220  0  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  0  -68.0       1 ...\n",
      "246  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -68.0       1 ...\n",
      "168  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -67.0       1 ...\n",
      "169  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0 ...  1  -67.0       1 ...\n",
      "170  0  0  1  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -67.0       1 ...\n",
      "175  0  0  0  0  0  0  0  1  0  1  0  0  0  0  0  0 ...  0  -66.0       1 ...\n",
      "176  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0  -66.0       1 ...\n",
      "177  0  0  1  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -66.0       1 ...\n",
      "202  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -66.0       1 ...\n",
      "266  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  0  -66.0       1 ...\n",
      "181  0  1  0  0  0  0  0  0  1  0  0  0  0  0  0  0 ...  0  -65.0       1 ...\n",
      "270  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -65.0       1 ...\n",
      "294  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -65.0       1 ...\n",
      "183  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -64.0       1 ...\n",
      "184  0  0  1  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -64.0       1 ...\n",
      "185  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  1  -64.0       1 ...\n",
      "259  1  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  1  -64.0       1 ...\n",
      "368  1  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -64.0       1 ...\n",
      "113  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -63.0       1 ...\n",
      "114  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  1  -63.0       1 ...\n",
      "189  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -63.0       1 ...\n",
      "229  0  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  0  -63.0       1 ...\n",
      "191  0  0  1  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0  -62.0       1 ...\n",
      "192  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  1  -62.0       1 ...\n",
      "222  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -62.0       1 ...\n",
      "122  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -61.0       1 ...\n",
      "194  0  0  1  0  0  0  0  1  0  0  0  0  0  0  0  0 ...  0  -61.0       1 ...\n",
      "195  1  0  0  0  0  0  0  0  0  0  1  0  0  1  0  0 ...  0  -61.0       1 ...\n",
      "276  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -61.0       1 ...\n",
      "362  1  0  0  0  0  0  0  0  0  0  0  0  0  1  0  1 ...  0  -61.0       1 ...\n",
      "127  0  1  0  0  0  0  1  0  0  0  0  0  0  0  0  1 ...  0  -60.0       1 ...\n",
      "128  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -60.0       1 ...\n",
      "214  0  1  1  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -60.0       1 ...\n",
      "215  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -60.0       1 ...\n",
      "277  0  1  0  0  1  0  0  0  0  0  0  0  0  0  0  0 ...  1  -60.0       1 ...\n",
      "132  0  1  0  0  0  1  0  0  0  0  0  0  0  0  0  1 ...  0  -59.0       1 ...\n",
      "235  0  1  0  0  0  0  0  0  0  0  0  0  0  0  1  0 ...  0  -59.0       1 ...\n",
      "332  0  0  1  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -59.0       1 ...\n",
      "404  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -59.0       1 ...\n",
      "137  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0 ...  1  -58.0       1 ...\n",
      "138  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -58.0       1 ...\n",
      "203  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0 ...  0  -58.0       1 ...\n",
      "301  0  1  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -58.0       1 ...\n",
      "363  1  0  0  0  0  0  0  0  0  1  1  0  0  0  0  0 ...  0  -58.0       1 ...\n",
      "251  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -57.0       1 ...\n",
      "253  1  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  1  -57.0       1 ...\n",
      "271  0  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  0  -56.0       1 ...\n",
      "299  0  0  1  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  1  -56.0       1 ...\n",
      "444  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -56.0       1 ...\n",
      "450  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -56.0       1 ...\n",
      "150  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -55.0       1 ...\n",
      "151  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  1 ...  0  -55.0       1 ...\n",
      "206  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -55.0       1 ...\n",
      "207  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -55.0       1 ...\n",
      "208  1  1  0  0  0  0  0  0  0  0  0  0  0  0  1  0 ...  1  -55.0       1 ...\n",
      "154  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -54.0       1 ...\n",
      "247  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -54.0       1 ...\n",
      "436  1  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -54.0       1 ...\n",
      "437  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  0  -54.0       1 ...\n",
      "217  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0  -53.0       1 ...\n",
      "218  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -53.0       1 ...\n",
      "352  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -53.0       1 ...\n",
      "223  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0 ...  0  -52.0       1 ...\n",
      "315  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -52.0       1 ...\n",
      "226  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  1  -51.0       1 ...\n",
      "350  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -51.0       1 ...\n",
      "171  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -50.0       1 ...\n",
      "225  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -50.0       1 ...\n",
      "250  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -50.0       1 ...\n",
      "322  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0  -50.0       1 ...\n",
      "407  0  1  0  0  0  0  0  0  0  0  0  0  0  0  1  0 ...  0  -50.0       1 ...\n",
      "419  0  0  0  0  0  0  0  0  1  0  0  0  0  1  0  0 ...  0  -50.0       1 ...\n",
      "438  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -50.0       1 ...\n",
      "178  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -49.0       1 ...\n",
      "179  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -49.0       1 ...\n",
      "180  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -49.0       1 ...\n",
      "249  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -49.0       1 ...\n",
      "233  0  0  1  0  0  0  0  1  0  0  0  0  0  0  0  0 ...  0  -48.0       1 ...\n",
      "274  0  1  0  0  0  0  1  0  0  0  0  0  0  0  0  0 ...  0  -48.0       1 ...\n",
      "329  0  0  1  0  0  0  0  0  1  0  0  0  0  0  0  0 ...  0  -48.0       1 ...\n",
      "356  0  0  0  0  0  0  0  1  0  0  0  0  0  1  0  0 ...  0  -48.0       1 ...\n",
      "376  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -48.0       1 ...\n",
      "186  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -47.0       1 ...\n",
      "187  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -47.0       1 ...\n",
      "188  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -47.0       1 ...\n",
      "237  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  1  -47.0       1 ...\n",
      "239  1  0  0  0  1  0  0  0  0  0  0  1  0  0  1  0 ...  0  -46.0       1 ...\n",
      "264  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -46.0       1 ...\n",
      "282  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -46.0       1 ...\n",
      "372  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -46.0       1 ...\n",
      "465  0  0  0  0  0  0  0  0  0  0  0  1  0  1  0  0 ...  0  -46.0       1 ...\n",
      "193  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -45.0       1 ...\n",
      "241  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0  -45.0       1 ...\n",
      "242  1  0  0  0  0  0  0  0  0  0  0  0  0  1  1  0 ...  0  -45.0       1 ...\n",
      "283  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -45.0       1 ...\n",
      "196  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -44.0       1 ...\n",
      "244  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -44.0       1 ...\n",
      "408  0  0  0  0  0  0  0  1  0  1  0  0  0  0  0  0 ...  0  -44.0       1 ...\n",
      "198  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -43.0       1 ...\n",
      "199  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -43.0       1 ...\n",
      "248  0  0  0  1  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -43.0       1 ...\n",
      "336  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  1  -43.0       1 ...\n",
      "431  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  1  -43.0       1 ...\n",
      "200  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -42.0       1 ...\n",
      "201  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -42.0       1 ...\n",
      "252  1  0  1  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -42.0       1 ...\n",
      "278  1  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -42.0       1 ...\n",
      "387  0  0  0  0  0  0  0  1  0  1  0  0  0  0  0  0 ...  0  -42.0       1 ...\n",
      "255  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -41.0       1 ...\n",
      "256  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  1  -41.0       1 ...\n",
      "496  0  0  0  0  0  0  0  0  0  1  0  1  0  0  0  0 ...  0  -41.0       1 ...\n",
      "205  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -40.0       1 ...\n",
      "257  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0 ...  0  -40.0       1 ...\n",
      "258  0  0  0  0  0  1  0  0  0  0  0  0  0  1  0  0 ...  0  -40.0       1 ...\n",
      "262  1  0  0  0  0  0  0  1  0  0  1  0  0  0  0  0 ...  0  -39.0       1 ...\n",
      "328  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0 ...  1  -39.0       1 ...\n",
      "341  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -39.0       1 ...\n",
      "386  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -39.0       1 ...\n",
      "209  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  1  -38.0       1 ...\n",
      "210  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  1  -38.0       1 ...\n",
      "212  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -38.0       1 ...\n",
      "267  0  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0 ...  0  -38.0       1 ...\n",
      "346  1  0  0  0  0  0  1  0  0  0  0  0  0  1  0  0 ...  0  -38.0       1 ...\n",
      "353  0  0  0  0  1  0  0  0  0  0  1  0  1  0  0  0 ...  0  -38.0       1 ...\n",
      "354  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -38.0       1 ...\n",
      "492  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  1  -38.0       1 ...\n",
      "498  0  1  0  0  0  0  0  1  0  0  0  0  0  0  0  1 ...  0  -38.0       1 ...\n",
      "213  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -37.0       1 ...\n",
      "272  0  0  0  0  1  0  0  0  1  0  0  0  0  0  0  0 ...  1  -37.0       1 ...\n",
      "273  0  0  0  0  0  0  0  0  0  1  1  0  0  0  0  0 ...  1  -37.0       1 ...\n",
      "219  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -36.0       1 ...\n",
      "457  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0 ...  0  -36.0       1 ...\n",
      "284  1  0  0  1  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -35.0       1 ...\n",
      "285  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0 ...  0  -35.0       1 ...\n",
      "286  0  1  0  0  0  0  0  0  0  1  0  0  0  0  1  0 ...  1  -35.0       1 ...\n",
      "287  0  0  0  0  0  0  0  1  0  0  1  0  0  0  0  0 ...  0  -35.0       1 ...\n",
      "314  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -35.0       1 ...\n",
      "291  1  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -34.0       1 ...\n",
      "292  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0 ...  0  -34.0       1 ...\n",
      "293  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0 ...  0  -34.0       1 ...\n",
      "313  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -34.0       1 ...\n",
      "318  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -34.0       1 ...\n",
      "389  1  0  0  0  0  0  0  0  1  0  0  0  0  1  0  0 ...  0  -34.0       1 ...\n",
      "296  0  1  0  0  0  0  0  0  0  0  1  0  0  1  0  0 ...  0  -33.0       1 ...\n",
      "475  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -33.0       1 ...\n",
      "297  0  0  0  1  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -32.0       1 ...\n",
      "298  1  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -32.0       1 ...\n",
      "433  0  0  0  0  0  0  1  0  0  0  0  0  0  1  0  0 ...  0  -32.0       1 ...\n",
      "471  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0 ...  0  -32.0       1 ...\n",
      "234  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -31.0       1 ...\n",
      "302  1  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -31.0       1 ...\n",
      "306  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -30.0       1 ...\n",
      "307  1  0  0  0  0  0  0  0  0  0  0  1  0  0  1  0 ...  0  -30.0       1 ...\n",
      "308  0  0  0  1  0  0  0  0  1  0  0  0  0  0  0  0 ...  0  -30.0       1 ...\n",
      "347  0  0  0  0  0  0  0  0  0  0  1  0  0  1  0  0 ...  1  -30.0       1 ...\n",
      "434  0  0  0  0  1  0  0  0  0  0  0  1  0  0  0  1 ...  0  -30.0       1 ...\n",
      "439  1  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  0  -30.0       1 ...\n",
      "480  0  0  1  0  0  0  0  0  1  0  0  0  0  1  0  0 ...  0  -30.0       1 ...\n",
      "240  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  1  -29.0       1 ...\n",
      "310  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  1 ...  0  -29.0       1 ...\n",
      "311  0  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0 ...  0  -29.0       1 ...\n",
      "361  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  1  -29.0       1 ...\n",
      "396  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -29.0       1 ...\n",
      "406  0  1  0  0  0  0  0  0  0  0  0  0  1  0  0  0 ...  0  -29.0       1 ...\n",
      "312  0  1  0  0  0  0  0  0  0  0  0  1  0  0  0  1 ...  1  -28.0       1 ...\n",
      "400  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -28.0       1 ...\n",
      "245  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -27.0       1 ...\n",
      "316  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  0  -27.0       1 ...\n",
      "380  0  1  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  1  -27.0       1 ...\n",
      "319  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0  -26.0       1 ...\n",
      "320  0  1  0  0  0  0  0  0  0  1  0  0  0  1  0  0 ...  0  -26.0       1 ...\n",
      "321  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0  -26.0       1 ...\n",
      "429  0  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  0  -26.0       1 ...\n",
      "381  0  1  1  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  0  -25.0       1 ...\n",
      "384  0  0  0  0  0  0  0  0  1  1  0  0  0  0  0  0 ...  1  -25.0       1 ...\n",
      "385  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -25.0       1 ...\n",
      "390  0  1  0  0  0  0  0  0  0  0  0  0  1  0  0  0 ...  0  -25.0       1 ...\n",
      "405  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  0  -25.0       1 ...\n",
      "460  1  0  0  0  0  0  1  0  0  0  1  0  0  0  0  0 ...  0  -25.0       1 ...\n",
      "410  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0 ...  0  -23.0       1 ...\n",
      "263  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -22.0       1 ...\n",
      "451  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0  -22.0       1 ...\n",
      "268  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -21.0       1 ...\n",
      "269  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -21.0       1 ...\n",
      "330  0  0  0  0  0  0  0  0  0  1  0  0  0  1  0  0 ...  0  -21.0       1 ...\n",
      "331  0  0  1  0  0  0  0  0  0  0  0  1  0  0  1  0 ...  0  -21.0       1 ...\n",
      "468  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -21.0       1 ...\n",
      "469  0  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  0  -21.0       1 ...\n",
      "472  0  1  0  0  0  0  0  0  0  0  1  1  0  0  0  0 ...  0  -21.0       1 ...\n",
      "334  1  0  0  0  0  0  0  1  0  0  1  0  0  0  0  0 ...  1  -20.0       1 ...\n",
      "279  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -19.0       1 ...\n",
      "280  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -19.0       1 ...\n",
      "335  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1  -19.0       1 ...\n",
      "288  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  1  -18.0       1 ...\n",
      "289  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -18.0       1 ...\n",
      "337  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  1  -18.0       1 ...\n",
      "338  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  1 ...  0  -18.0       1 ...\n",
      "403  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  1  -18.0       1 ...\n",
      "447  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -18.0       1 ...\n",
      "489  1  0  0  0  0  0  0  0  0  0  0  1  0  1  0  0 ...  0  -18.0       1 ...\n",
      "342  0  1  0  0  0  0  0  0  1  0  0  0  1  0  0  0 ...  0  -17.0       1 ...\n",
      "458  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0 ...  0  -16.0       1 ...\n",
      "344  0  0  0  0  1  1  0  1  0  0  0  0  0  0  0  0 ...  0  -15.0       1 ...\n",
      "303  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -14.0       1 ...\n",
      "345  1  0  0  0  0  0  0  0  0  1  0  0  0  0  1  0 ...  0  -14.0       1 ...\n",
      "309  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0 ...  1  -13.0       1 ...\n",
      "348  0  1  0  0  0  0  0  0  0  0  0  0  1  1  0  1 ...  0  -13.0       1 ...\n",
      "423  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -13.0       1 ...\n",
      "470  0  0  0  0  0  0  0  0  0  1  1  0  0  0  0  0 ...  0  -13.0       1 ...\n",
      "409  0  1  1  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -12.0       1 ...\n",
      "355  0  0  1  0  0  0  0  0  1  0  0  0  0  0  0  0 ...  0  -11.0       1 ...\n",
      "317  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  -10.0       1 ...\n",
      "357  0  0  0  0  0  0  0  1  0  0  0  0  0  1  0  0 ...  0  -10.0       1 ...\n",
      "358  1  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  1  -10.0       1 ...\n",
      "359  0  0  0  1  1  0  0  0  0  0  0  1  0  0  0  0 ...  1  -10.0       1 ...\n",
      "388  0  1  0  0  0  0  0  0  0  0  0  0  0  0  1  0 ...  1   -8.0       1 ...\n",
      "402  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  1   -8.0       1 ...\n",
      "487  0  1  1  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0   -8.0       1 ...\n",
      "411  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0   -7.0       1 ...\n",
      "482  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  0   -7.0       1 ...\n",
      "365  0  1  0  0  0  0  0  0  0  1  0  0  0  1  0  0 ...  0   -6.0       1 ...\n",
      "366  0  0  0  0  0  0  0  1  0  0  0  0  0  1  0  0 ...  0   -6.0       1 ...\n",
      "367  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  1   -6.0       1 ...\n",
      "370  1  0  0  0  0  0  0  0  0  1  0  0  0  0  0  1 ...  0   -5.0       1 ...\n",
      "371  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0   -5.0       1 ...\n",
      "428  0  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  1   -5.0       1 ...\n",
      "455  0  0  0  0  0  0  1  0  0  1  0  0  1  0  0  0 ...  0   -5.0       1 ...\n",
      "466  0  0  1  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0   -5.0       1 ...\n",
      "448  1  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0   -4.0       1 ...\n",
      "377  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0   -3.0       1 ...\n",
      "378  0  0  1  0  0  0  0  0  0  1  1  0  0  0  0  1 ...  0   -3.0       1 ...\n",
      "382  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0   -2.0       1 ...\n",
      "339  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0   -1.0       1 ...\n",
      "340  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1   -1.0       1 ...\n",
      "491  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0   -1.0       1 ...\n",
      "343  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0    0.0       1 ...\n",
      "453  0  0  0  0  0  0  0  0  1  0  1  0  0  0  0  0 ...  0    0.0       1 ...\n",
      "454  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  1    0.0       1 ...\n",
      "493  1  0  0  0  0  1  0  0  1  0  0  0  0  0  0  0 ...  0    3.0       1 ...\n",
      "349  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0    4.0       1 ...\n",
      "351  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1    5.0       1 ...\n",
      "391  0  1  1  0  0  0  0  0  0  0  0  0  0  0  1  0 ...  0    5.0       1 ...\n",
      "392  0  0  0  0  0  0  0  0  0  1  0  0  0  1  0  0 ...  0    6.0       1 ...\n",
      "393  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0 ...  1    6.0       1 ...\n",
      "360  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0    7.0       1 ...\n",
      "394  0  0  0  0  0  0  0  1  1  0  0  0  0  0  0  0 ...  0    7.0       1 ...\n",
      "397  0  0  0  0  0  0  1  0  1  0  0  0  0  0  0  1 ...  0    8.0       1 ...\n",
      "398  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  1 ...  1    8.0       1 ...\n",
      "399  0  0  0  0  0  0  0  0  1  0  1  0  0  0  0  0 ...  0    9.0       1 ...\n",
      "364  1  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0 ...  0   10.0       1 ...\n",
      "497  0  0  0  0  0  0  0  0  0  0  0  1  0  1  0  0 ...  0   11.0       1 ...\n",
      "374  1  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0   13.0       1 ...\n",
      "375  0  0  0  1  0  1  0  0  0  0  0  0  0  0  0  0 ...  0   13.0       1 ...\n",
      "443  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0   16.0       1 ...\n",
      "415  0  0  0  0  0  0  0  0  1  0  0  0  0  1  0  0 ...  0   17.0       1 ...\n",
      "416  0  0  0  0  0  0  0  0  0  1  1  0  0  0  0  0 ...  0   17.0       1 ...\n",
      "432  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0 ...  0   17.0       1 ...\n",
      "420  0  0  1  0  0  0  0  0  0  1  0  0  0  1  0  0 ...  0   20.0       1 ...\n",
      "484  0  0  0  0  0  0  0  1  0  0  0  0  0  1  1  0 ...  0   20.0       1 ...\n",
      "449  1  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0   21.0       1 ...\n",
      "422  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0   22.0       1 ...\n",
      "425  0  0  0  0  0  0  0  1  0  0  1  0  0  0  0  0 ...  0   23.0       1 ...\n",
      "395  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0   24.0       1 ...\n",
      "430  0  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  1   25.0       1 ...\n",
      "435  0  1  0  0  0  0  0  0  1  0  0  0  0  0  0  1 ...  0   28.0       1 ...\n",
      "412  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0   33.0       1 ...\n",
      "441  0  1  0  0  0  0  0  0  0  0  0  0  0  1  0  0 ...  0   34.0       1 ...\n",
      "442  0  0  0  0  0  0  0  0  0  0  0  0  0  1  0  1 ...  0   35.0       1 ...\n",
      "462  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0 ...  1   38.0       1 ...\n",
      "446  1  0  0  0  0  0  0  0  1  0  1  0  0  0  1  0 ...  0   39.0       1 ...\n",
      "426  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0   40.0       1 ...\n",
      "481  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0   51.0       1 ...\n",
      "456  0  1  0  0  0  0  0  0  0  1  0  0  0  0  0  0 ...  0   54.0       1 ...\n",
      "445  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0   55.0       1 ...\n",
      "459  0  1  0  0  0  0  0  0  0  0  1  0  0  0  0  1 ...  0   58.0       1 ...\n",
      "461  0  0  0  0  0  0  1  0  0  0  0  1  0  1  0  0 ...  0   64.0       1 ...\n",
      "463  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  1   82.0       1 ...\n",
      "479  0  0  1  0  0  0  0  0  0  1  0  1  0  0  0  0 ...  0   95.0       1 ...\n",
      "486  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  111.0       1 ...\n",
      "494  0  0  0  0  0  0  0  1  1  0  1  0  0  0  0  0 ...  0  113.0       1 ...\n",
      "483  0  1  1  0  0  0  0  0  0  0  0  0  0  0  0  0 ...  0  115.0       1 ...\n",
      "490  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0 ...  0  117.0       1 ...\n",
      "['BINARY', 499 rows, 500 samples, 42 variables]\n",
      "AFTER\n",
      "INSPECT BEFORE\n"
     ],
     "output_type": "stream"
    },
    {
     "name": "stderr",
     "text": [
      "Exception in thread Thread-4:\n",
      "Traceback (most recent call last):\n",
      "  File \"/Users/robinbux/Desktop/Projects/venv/lib/python3.7/site-packages/dwave/inspector/server.py\", line 120, in _make_server\n",
      "    import dwave._inspectorapp as webappdata\n",
      "ModuleNotFoundError: No module named 'dwave._inspectorapp'\n",
      "\n",
      "During handling of the above exception, another exception occurred:\n",
      "\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py\", line 926, in _bootstrap_inner\n",
      "    self.run()\n",
      "  File \"/Users/robinbux/Desktop/Projects/venv/lib/python3.7/site-packages/dwave/inspector/server.py\", line 156, in run\n",
      "    self.server.serve_forever()\n",
      "  File \"/Users/robinbux/Desktop/Projects/venv/lib/python3.7/site-packages/dwave/inspector/server.py\", line 142, in server\n",
      "    self._server = self._make_server()\n",
      "  File \"/Users/robinbux/Desktop/Projects/venv/lib/python3.7/site-packages/dwave/inspector/server.py\", line 123, in _make_server\n",
      "    \"Can't use the Inspector without a non-open-source 'inspector' \"\n",
      "RuntimeError: Can't use the Inspector without a non-open-source 'inspector' app component. Try running: 'dwave install inspector', or consult the docs.\n",
      "\n"
     ],
     "output_type": "stream"
    },
    {
     "traceback": [
      "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[0;31mModuleNotFoundError\u001b[0m                       Traceback (most recent call last)",
      "\u001b[0;32m~/Desktop/Projects/venv/lib/python3.7/site-packages/dwave/inspector/server.py\u001b[0m in \u001b[0;36m_make_server\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m    119\u001b[0m         \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 120\u001b[0;31m             \u001b[0;32mimport\u001b[0m \u001b[0mdwave\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_inspectorapp\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mwebappdata\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m    121\u001b[0m         \u001b[0;32mexcept\u001b[0m \u001b[0mImportError\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;31mModuleNotFoundError\u001b[0m: No module named 'dwave._inspectorapp'",
      "\nDuring handling of the above exception, another exception occurred:\n",
      "\u001b[0;31mRuntimeError\u001b[0m                              Traceback (most recent call last)",
      "\u001b[0;32m<ipython-input-1-1c3b7aa3e781>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m      1\u001b[0m \u001b[0mget_ipython\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mrun_line_magic\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'load'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m'JSP.py '\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m      2\u001b[0m \u001b[0;32mimport\u001b[0m \u001b[0mJSP\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mjsp\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 3\u001b[0;31m \u001b[0mjsp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mmain\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;34m\"-vqmi\"\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m      4\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m      5\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m~/Desktop/QC/code/jsp/JSP.py\u001b[0m in \u001b[0;36mmain\u001b[0;34m(args)\u001b[0m\n\u001b[1;32m    148\u001b[0m     \u001b[0;32mif\u001b[0m \u001b[0moptions\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mi\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    149\u001b[0m         \u001b[0mprint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"INSPECT BEFORE\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 150\u001b[0;31m         \u001b[0mdwave\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0minspector\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mshow\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mresponse\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m    151\u001b[0m         \u001b[0mprint\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m\"INSPECT AFTER\"\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    152\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m~/Desktop/Projects/venv/lib/python3.7/site-packages/dwave/inspector/__init__.py\u001b[0m in \u001b[0;36mshow\u001b[0;34m(*args, **kwargs)\u001b[0m\n\u001b[1;32m    153\u001b[0m     \u001b[0mdata\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mfrom_objects\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0margs\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;34m**\u001b[0m\u001b[0mkwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    154\u001b[0m     \u001b[0mid_\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mpush_inspector_data\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdata\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 155\u001b[0;31m     \u001b[0;32mreturn\u001b[0m \u001b[0mopen_problem\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mid_\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mblock\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mblock\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[0;32m~/Desktop/Projects/venv/lib/python3.7/site-packages/dwave/inspector/__init__.py\u001b[0m in \u001b[0;36mopen_problem\u001b[0;34m(problem_id, block)\u001b[0m\n\u001b[1;32m     77\u001b[0m         \u001b[0mblock\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mBlock\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mblock\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mlower\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m     78\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 79\u001b[0;31m     \u001b[0mapp_server\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mensure_started\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m     80\u001b[0m     \u001b[0murl\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mapp_server\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mget_inspect_url\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mproblem_id\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m     81\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m~/Desktop/Projects/venv/lib/python3.7/site-packages/dwave/inspector/server.py\u001b[0m in \u001b[0;36mensure_started\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m    181\u001b[0m         \u001b[0;32mif\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mis_alive\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    182\u001b[0m             \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mstart\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 183\u001b[0;31m             \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_ensure_accessible\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m    184\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    185\u001b[0m         \u001b[0;32mreturn\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m~/Desktop/Projects/venv/lib/python3.7/site-packages/dwave/inspector/server.py\u001b[0m in \u001b[0;36m_ensure_accessible\u001b[0;34m(self, sleep, tries, timeout)\u001b[0m\n\u001b[1;32m    167\u001b[0m         \u001b[0;34m\"\"\"Ping the canary URL (app root) until the app becomes accessible.\"\"\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    168\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 169\u001b[0;31m         \u001b[0mcanary\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m'http://{}:{}/'\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mformat\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mserver\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mserver_address\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m    170\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    171\u001b[0m         \u001b[0;32mfor\u001b[0m \u001b[0m_\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mrange\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtries\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m~/Desktop/Projects/venv/lib/python3.7/site-packages/dwave/inspector/server.py\u001b[0m in \u001b[0;36mserver\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m    140\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    141\u001b[0m             \u001b[0;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_server\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 142\u001b[0;31m                 \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_server\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_make_server\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m    143\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    144\u001b[0m             \u001b[0;32mreturn\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_server\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m~/Desktop/Projects/venv/lib/python3.7/site-packages/dwave/inspector/server.py\u001b[0m in \u001b[0;36m_make_server\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m    121\u001b[0m         \u001b[0;32mexcept\u001b[0m \u001b[0mImportError\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    122\u001b[0m             raise RuntimeError(\n\u001b[0;32m--> 123\u001b[0;31m                 \u001b[0;34m\"Can't use the Inspector without a non-open-source 'inspector' \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m    124\u001b[0m                 \u001b[0;34m\"app component. Try running: 'dwave install inspector', or \"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    125\u001b[0m                 \"consult the docs.\")\n",
      "\u001b[0;31mRuntimeError\u001b[0m: Can't use the Inspector without a non-open-source 'inspector' app component. Try running: 'dwave install inspector', or consult the docs."
     ],
     "ename": "RuntimeError",
     "evalue": "Can't use the Inspector without a non-open-source 'inspector' app component. Try running: 'dwave install inspector', or consult the docs.",
     "output_type": "error"
    }
   ],
   "source": [
    "%load JSP.py \n",
    "import JSP as jsp\n",
    "jsp.main([\"-vqmi\"])"
   ]
  },
  {
   "cell_type": "markdown",
   "source": [
    "### Hamiltonian\n",
    "According to the paper, we have\n",
    "$\n",
    "\tH_{T}(\\bar{x})=\\eta h_{1}(\\bar{x})+\\alpha h_{2}(\\bar{x})+\\beta h_{3}(\\bar{x})\n",
    "$\n",
    "where\n",
    "\n",
    "\\begin{align*}\n",
    "\th_1(\\bar{x}) &= \\sum_n \\left( \\sum\\limits_{\\substack{k_{n-1}<i<k_n \\\\ t+p_i>t'}} x_{i,t}x_{i+1,t'}\\right), \\\\\n",
    "\th_2(\\bar{x}) &= \\sum_m \\left(\\sum_{(i,t,k,t')\\in R_m} x_{i,t}x_{k,t'}\\right), \\\\\n",
    "\th_3(\\bar{x}) &= \\sum_i \\left(\\sum_t x_{i,t}-1 \\right)^2,\n",
    "\\end{align*}\n",
    "\n",
    "### Space Minimization -- Machine level\n",
    "\n",
    "For all machines $m$, we want the total length of the starting time in addition to the processing time to be minimal:\n",
    "\n",
    "\\begin{equation*}\n",
    "\\sum_m\\left(\\sum_{i\\in I_m}\\sum\\limits_{\\substack{k\\in I_m\\\\k\\neq i\\\\t'>t}}x_{i,t}x_{k,t'}(t'-(t+p_i))\\right)\n",
    "\\end{equation*}\n",
    "\n",
    "\n",
    "### Space Minimization -- Job level\n",
    "\n",
    "We want to have the same minimization on the job level:\n",
    "\n",
    "\\begin{equation*}\n",
    "\\sum_n\\left(\\sum_{k_{n-1}<i<k_n}x_{i,t}x_{i+1,t'}(t'-(t+p_i))\\right)\n",
    "\\end{equation*}"
   ],
   "metadata": {
    "collapsed": false
   }
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  },
  "pycharm": {
   "stem_cell": {
    "cell_type": "raw",
    "source": [],
    "metadata": {
     "collapsed": false
    }
   }
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}